//
// Copyright (c) 2006 by Conor O'Mahony.
// For enquiries, please email GubuSoft@GubuSoft.com.
// Please keep all copyright notices below.
// Original author of TreeView script is Marcelino Martins.
//
// This document includes the TreeView script.
// The TreeView script can be found at http://www.TreeView.net.
// The script is Copyright (c) 2006 by Conor O'Mahony.
//
// You can find general instructions for this file at www.treeview.net. 
//

// Configures whether the names of the nodes are links (or whether only the icons
// are links).
USETEXTLINKS = 1

// Configures whether the tree is fully open upon loading of the page, or whether
// only the root node is visible.
STARTALLOPEN = 0

// Specify if the images are in a subdirectory;
ICONPATH = ''


foldersTree = gFld("<i>src</i>", "contenido.html")
  foldersTree.treeID = "Frameset"
  foldersTree.iconSrc		= ICONPATH + "ftv2proy_folder_open.gif"
  foldersTree.iconSrcClosed	= ICONPATH + "ftv2proy_folder_closed.gif"
    aux2 = insFld(foldersTree, gFld("algoritmo",			"javascript:parent.op()"))
      insDoc(aux2, gLnk("R", "Analisis.java",				"algoritmo/Analisis.java.html"))
      insDoc(aux2, gLnk("R", "Calendario.java",				"algoritmo/Calendario.java.html"))
      insDoc(aux2, gLnk("R", "Cuadrante.java",				"algoritmo/Cuadrante.java.html"))
      insDoc(aux2, gLnk("R", "Estructura.java",				"algoritmo/Estructura.java.html"))
      insDoc(aux2, gLnk("R", "HoraCalendario.java",			"algoritmo/HoraCalendario.java.html"))
      insDoc(aux2, gLnk("R", "ListasEmpleados.java",		"algoritmo/ListasEmpleados.java.html"))
      insDoc(aux2, gLnk("R", "ResultadoTurnoMatic.java",	"algoritmo/ResultadoTurnoMatic.java.html"))
      insDoc(aux2, gLnk("R", "Resumen.java",				"algoritmo/Resumen.java.html"))
      insDoc(aux2, gLnk("R", "Sugerencia.java",				"algoritmo/Sugerencia.java.html"))
      insDoc(aux2, gLnk("R", "Trabaja.java",				"algoritmo/Trabaja.java.html"))
      insDoc(aux2, gLnk("R", "TurnoMatic.java",				"algoritmo/TurnoMatic.java.html"))

    aux2 = insFld(foldersTree, gFld("aplicacion",			"javascript:parent.op()"))
      aux3 = insFld(aux2, gFld("database",					"javascript:parent.op()"))
        insDoc(aux3, gLnk("R", "DatabaseFactory.java",		"aplicacion/database/DatabaseFactory.java.html"))
        insDoc(aux3, gLnk("R", "DatabaseMySQL.java",		"aplicacion/database/DatabaseMySQL.java.html"))
        insDoc(aux3, gLnk("R", "i_Database.java",			"aplicacion/database/i_Database.java.html"))
      aux3 = insFld(aux2, gFld("datos",						"javascript:parent.op()"))
        insDoc(aux3, gLnk("R", "Contrato.java",				"aplicacion/datos/Contrato.java.html"))
        insDoc(aux3, gLnk("R", "Departamento.java",			"aplicacion/datos/Departamento.java.html"))
        insDoc(aux3, gLnk("R", "Empleado.java",				"aplicacion/datos/Empleado.java.html"))
        insDoc(aux3, gLnk("R", "Turno.java",				"aplicacion/datos/Turno.java.html"))
      aux3 = insFld(aux2, gFld("mensajeria",				"javascript:parent.op()"))
        insDoc(aux3, gLnk("R", "Incidencia.java",			"aplicacion/mensajeria/Incidencia.java.html"))
        insDoc(aux3, gLnk("R", "Mensaje.java",	 			"aplicacion/mensajeria/Mensaje.java.html"))
        insDoc(aux3, gLnk("R", "Mensajeria.java",	 		"aplicacion/mensajeria/Mensajeria.java.html"))
      aux3 = insFld(aux2, gFld("utilidades",				"javascript:parent.op()"))
        insDoc(aux3, gLnk("R", "Code128.java",				"aplicacion/utilidades/Code128.java.html"))
        insDoc(aux3, gLnk("R", "Dibujable.java", 			"aplicacion/utilidades/Dibujable.java.html"))
        insDoc(aux3, gLnk("R", "EncriptCadena.java",		"aplicacion/utilidades/EncriptCadena.java.html"))
        insDoc(aux3, gLnk("R", "Posicion.java",				"aplicacion/utilidades/Posicion.java.html"))
        insDoc(aux3, gLnk("R", "Util.java",					"aplicacion/utilidades/Util.java.html"))
      insDoc(aux2, gLnk("R", "Aplicacion.java",				"aplicacion/Aplicacion.java.html"))
      insDoc(aux2, gLnk("R", "Controlador.java",			"aplicacion/Controlador.java.html"))
      insDoc(aux2, gLnk("R", "Vista.java",					"aplicacion/Vista.java.html"))

    aux2 = insFld(foldersTree, gFld("idiomas",					"javascript:parent.op()"))
      insDoc(aux2, gLnk("R", "LanguageChanger.java",			"idiomas/LanguageChanger.java.html"))
      aux3 = insDoc(aux2, gLnk("R", "Idioma_en.properties",		"idiomas/Idioma_en.properties"))
      aux3.iconSrc			= ICONPATH + "ftv2txt.gif"
      aux3 = insDoc(aux2, gLnk("R", "Idioma_it.properties",		"idiomas/Idioma_it.properties"))
      aux3.iconSrc			= ICONPATH + "ftv2txt.gif"
      aux3 = insDoc(aux2, gLnk("R", "Idioma_pl.properties",		"idiomas/Idioma_pl.properties"))
      aux3.iconSrc			= ICONPATH + "ftv2txt.gif"
      aux3 = insDoc(aux2, gLnk("R", "Idioma.properties",		"idiomas/Idioma.properties"))
      aux3.iconSrc			= ICONPATH + "ftv2txt.gif"

    aux2 = insFld(foldersTree, gFld("impresion",				"javascript:parent.op()"))
      insDoc(aux2, gLnk("R", "Imprimir.java",					"impresion/Imprimir.java.html"))

    aux2 = insFld(foldersTree, gFld("interfaces",				"javascript:parent.op()"))
      aux3 = insFld(aux2, gFld("admin",							"javascript:parent.op()"))
        insDoc(aux3, gLnk("R", "NuevoDepartamento.java",		"interfaces/admin/NuevoDepartamento.java.html"))
        insDoc(aux3, gLnk("R", "ShellConfigDepartamento.java",	"interfaces/admin/ShellConfigDepartamento.java.html"))
        insDoc(aux3, gLnk("R", "ShellInfoBD.java",				"interfaces/admin/ShellInfoBD.java.html"))
        insDoc(aux3, gLnk("R", "TabDepartamentosAdmin.java",	"interfaces/admin/TabDepartamentosAdmin.java.html"))
        insDoc(aux3, gLnk("R", "TabEliminaJefe.java",			"interfaces/admin/TabEliminaJefe.java.html"))
        insDoc(aux3, gLnk("R", "TabInicio.java",				"interfaces/admin/TabInicio.java.html"))
        insDoc(aux3, gLnk("R", "TabNuevoJefe.java",				"interfaces/admin/TabNuevoJefe.java.html"))
      aux3 = insFld(aux2, gFld("empleado",						"javascript:parent.op()"))
        insDoc(aux3, gLnk("R", "CambiarDatos.java",				"interfaces/empleado/CambiarDatos.java.html"))
        insDoc(aux3, gLnk("R", "CuadranteEmpleado.java",		"interfaces/empleado/CuadranteEmpleado.java.html"))
        insDoc(aux3, gLnk("R", "Cuadrantes.java",				"interfaces/empleado/Cuadrantes.java.html"))
        insDoc(aux3, gLnk("R", "Estadisticas.java",				"interfaces/empleado/Estadisticas.java.html"))
        insDoc(aux3, gLnk("R", "TabCuadranteEmpleado.java",		"interfaces/empleado/TabCuadranteEmpleado.java.html"))
        insDoc(aux3, gLnk("R", "ThreadsCuadrantes.java",		"interfaces/empleado/ThreadsCuadrantes.java.html"))
      aux3 = insFld(aux2, gFld("general",						"javascript:parent.op()"))
        aux4 = insFld(aux3, gFld("cuadrantes",					"javascript:parent.op()"))
          insDoc(aux4, gLnk("R", "I_Cuadrante.java",			"interfaces/general/cuadrantes/I_Cuadrante.java.html"))
          insDoc(aux4, gLnk("R", "I_Turno.java",				"interfaces/general/cuadrantes/I_Turno.java.html"))
        aux4 = insFld(aux3, gFld("mensajeria",					"javascript:parent.op()"))
          insDoc(aux4, gLnk("R", "PeticionBaja.java",			"interfaces/general/mensajeria/PeticionBaja.java.html"))
          insDoc(aux4, gLnk("R", "ShellEscribirMensaje.java",	"interfaces/general/mensajeria/ShellEscribirMensaje.java.html"))
          insDoc(aux4, gLnk("R", "ShellMensajeNuevo.java",		"interfaces/general/mensajeria/ShellMensajeNuevo.java.html"))
          insDoc(aux4, gLnk("R", "TabMensajeria.java",			"interfaces/general/mensajeria/TabMensajeria.java.html"))
        insDoc(aux3, gLnk("R", "CambioHorario.java",			"interfaces/general/CambioHorario.java.html"))
        insDoc(aux3, gLnk("R", "DialogAyudaLector.java",		"interfaces/general/DialogAyudaLector.java.html"))
        insDoc(aux3, gLnk("R", "DialogElegirEmpleado.java",		"interfaces/general/DialogElegirEmpleado.java.html"))
        insDoc(aux3, gLnk("R", "DialogSeleccionFecha.java",		"interfaces/general/DialogSeleccionFecha.java.html"))
        insDoc(aux3, gLnk("R", "InfoEmpleado.java",				"interfaces/general/InfoEmpleado.java.html"))
        insDoc(aux3, gLnk("R", "ObservadorCargaCache.java",		"interfaces/general/ObservadorCargaCache.java.html"))
        insDoc(aux3, gLnk("R", "ShellAyuda.java",				"interfaces/general/ShellAyuda.java.html"))
        insDoc(aux3, gLnk("R", "ShellExcepcion.java",			"interfaces/general/ShellExcepcion.java.html"))
        insDoc(aux3, gLnk("R", "ShellLogin.java",				"interfaces/general/ShellLogin.java.html"))
        insDoc(aux3, gLnk("R", "ShellPrincipal.java",			"interfaces/general/ShellPrincipal.java.html"))
        insDoc(aux3, gLnk("R", "TipoImpresion.java",			"interfaces/general/TipoImpresion.java.html"))
      aux3 = insFld(aux2, gFld("graficos",						"javascript:parent.op()"))
        insDoc(aux3, gLnk("R", "BarChart.java",					"interfaces/graficos/BarChart.java.html"))
        insDoc(aux3, gLnk("R", "Chart.java",					"interfaces/graficos/Chart.java.html"))
        insDoc(aux3, gLnk("R", "PieChart.java",					"interfaces/graficos/PieChart.java.html"))
        insDoc(aux3, gLnk("R", "Tabla.java",					"interfaces/graficos/Tabla.java.html"))
        insDoc(aux3, gLnk("R", "TablaAnual.java",				"interfaces/graficos/TablaAnual.java.html"))
        insDoc(aux3, gLnk("R", "TablaMensual.java",				"interfaces/graficos/TablaMensual.java.html"))
        insDoc(aux3, gLnk("R", "TablaSemanal.java",				"interfaces/graficos/TablaSemanal.java.html"))
        insDoc(aux3, gLnk("R", "TimeSeriesChart.java",			"interfaces/graficos/TimeSeriesChart.java.html"))
        insDoc(aux3, gLnk("R", "XYChart.java",					"interfaces/graficos/XYChart.java.html"))
      aux3 = insFld(aux2, gFld("imagenes",						"javascript:parent.op()"))
        insDoc(aux3, gLnk("R", "CargadorImagenes.java",			"interfaces/imagenes/CargadorImagenes.java.html"))
      aux3 = insFld(aux2, gFld("jefe",							"javascript:parent.op()"))
        insDoc(aux3, gLnk("R", "CuadroDia.java",				"interfaces/jefe/CuadroDia.java.html"))
        insDoc(aux3, gLnk("R", "DialogAnadirEmpleado.java",		"interfaces/jefe/DialogAnadirEmpleado.java.html"))
        insDoc(aux3, gLnk("R", "DialogConsultarEmpleado.java",	"interfaces/jefe/DialogConsultarEmpleado.java.html"))
        insDoc(aux3, gLnk("R", "DialogCreacionContratos.java",	"interfaces/jefe/DialogCreacionContratos.java.html"))
        insDoc(aux3, gLnk("R", "DialogCreacionTurnos.java",		"interfaces/jefe/DialogCreacionTurnos.java.html"))
        insDoc(aux3, gLnk("R", "DialogEditarEmpleado.java",		"interfaces/jefe/DialogEditarEmpleado.java.html"))
        insDoc(aux3, gLnk("R", "DialogVentasEmpleado.java",		"interfaces/jefe/DialogVentasEmpleado.java.html"))
        insDoc(aux3, gLnk("R", "HorarioMes.java",				"interfaces/jefe/HorarioMes.java.html"))
        insDoc(aux3, gLnk("R", "SubTabConfiguracionDias.java",	"interfaces/jefe/SubTabConfiguracionDias.java.html"))
        insDoc(aux3, gLnk("R", "TabContratos.java",				"interfaces/jefe/TabContratos.java.html"))
        insDoc(aux3, gLnk("R", "TabDepartamentos.java",			"interfaces/jefe/TabDepartamentos.java.html"))
        insDoc(aux3, gLnk("R", "TabEmpleados.java",				"interfaces/jefe/TabEmpleados.java.html"))


      //
      // The next three links have their http protocol appended by the script
      //
//      insDoc(aux2, gLnk("Rh", "Pisa", "www.treeview.net/treemenu/demopics/beenthere_pisa.jpg"))
//      insDoc(aux2, gLnk("Rh", "Rome", "www.treeview.net/treemenu/demopics/beenthere_rome.jpg"))
//      insDoc(aux2, gLnk("Rh", "Lisboa", "www.treeview.net/treemenu/demopics/beenthere_lisbon.jpg"))

//  aux1 = insFld(foldersTree, gFld("3 Types of folders", "javascript:parent.op()"))

//    aux2 = insFld(aux1, gFld("Linked", "http://www.treeview.net/treemenu/demopics/beenthere_unitedstates.gif"))
//      insDoc(aux2, gLnk("R", "New York", "http://www.treeview.net/treemenu/demopics/beenthere_newyork.jpg"))

//    aux2 = insFld(aux1, gFld("Empty, linked", "http://www.treeview.net/treemenu/demopics/beenthere_europe.gif"))

    //
    // Netscape 4.x needs the HREF to be non-empty to process other events such as open folder,
    // hence the need for the op function
    //
//    aux2 = insFld(aux1, gFld("Not linked", "javascript:parent.op()"))
//      insDoc(aux2, gLnk("R", "New York", "http://www.treeview.net/treemenu/demopics/beenthere_newyork.jpg"))

//  aux1 = insFld(foldersTree, gFld("Targets", "javascript:parent.op()"))
//      insDoc(aux1, gLnk("R", "Right frame", "http://www.treeview.net/treemenu/demopics/beenthere_edinburgh.gif"))
//      insDoc(aux1, gLnk("B", "New window", "http://www.treeview.net/treemenu/demopics/beenthere_london.jpg"))
//      insDoc(aux1, gLnk("T", "Whole window", "http://www.treeview.net/treemenu/demopics/beenthere_munich.jpg"))
//      insDoc(aux1, gLnk("S", "This frame", "http://www.treeview.net/treemenu/demopics/beenthere_athens.jpg"))
      //
      // The S target is required.
      // The \\\ is needed to escape the ' character for string arguments.
      // Also, note that if you define your function in the parent frame, use javascript:parent.myfunc
//      insDoc(aux1, gLnk("S", "JavaScript link", "javascript:alert(\\\'This JavaScript link simply calls the built-in alert function,\\\\nbut you can define your own function.\\\')"))

//  aux1 = insFld(foldersTree, gFld("Other icons", "javascript:parent.op()"))
//  aux1.iconSrc = ICONPATH + "diffFolder.gif"
//  aux1.iconSrcClosed = ICONPATH + "diffFolder.gif"
//    docAux = insDoc(aux1, gLnk("B", "D/L Treeview", "http://www.treeview.net/treemenu/download.asp"))
//    docAux.iconSrc = ICONPATH + "diffDoc.gif"

//  aux1 = insFld(foldersTree, gFld("<font color=red>F</font><font color=blue>o</font><font color=pink>r</font><font color=green>m</font><font color=red>a</font><font color=blue>t</font><font color=brown>s</font>", "javascript:parent.op()"))
//    docAux = insDoc(aux1, gLnk("R", "<div class=specialClass>CSS Class</div>", "http://www.treeview.net/treemenu/demopics/beenthere_newyork.jpg"))

